package com.ruoyi.main.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 计量单位对象 main_unites
 * 
 * @author chao
 * @date 2024-07-23
 */
public class MainUnites extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 单位ID */
    private Long id;

    /** 单位编码 */
    @Excel(name = "单位编码")
    private String code;

    /** 单位名称 */
    @Excel(name = "单位名称")
    private String name;

    /** 是否启用 */
    @Excel(name = "是否启用")
    private Long apply;

    /** 备注 */
    @Excel(name = "备注")
    private String common;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setApply(Long apply) 
    {
        this.apply = apply;
    }

    public Long getApply() 
    {
        return apply;
    }

    public void setCommon(String common) 
    {
        this.common = common;
    }

    public String getCommon() 
    {
        return common;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("code", getCode())
            .append("name", getName())
            .append("apply", getApply())
            .append("common", getCommon())
            .toString();
    }
}
